package com.zyc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zyc.pojo.UserPojo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper extends BaseMapper<UserPojo> {
    List<UserPojo> findAllUsers();//查询全部
    UserPojo findUserByID(String id);//根据编号查询
    int insertUser(UserPojo userPojo);//添加
    int deleteUserByID(String id);//根据编号删除
    int updateUser(UserPojo userPojo);//修改信息
    List<UserPojo> findUserByStr(String searchStr);//模糊查询
}
